{%- macro print_menu_level(menu_level_items) %}

    {%- for menu_item in menu_level_items %}

        {% if loop.first %}
            <ul>
        {% endif %}

        <li>

            <a>{{ menu_item.vg_dm_name }}</a>

            {% set next_menu_level_items = menu_item.getChilds() %}
            {% if next_menu_level_items %}
                {{ print_menu_level(next_menu_level_items) }}
            {% endif %}

        </li>

        {% if loop.last %}
            </ul>
        {% endif %}

    {%- endfor %}

{%- endmacro %}



{{ print_menu_level(root_menu_items) }}

         
